package zestaw4.niezmiennosc_obiektow;

/**
 * Author: Daniel
 * Date: 03.08.13
 */

public final class Tablica {
    private final int[] tab;

    public Tablica(int[] tab) {
        this.tab = (int[]) tab.clone();
    }

    public int getTab(int n) {
        return tab[n];
    }

    public int[] getTab() {
        return (int[]) tab.clone();
    }
}
